package com.aliyun.order.server.dao.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 订单
 *
 * 
 * @date 2024/11/26
 */
@Data
@TableName("tech_solution_order")
public class OrderDO implements Serializable {

    private static final long serialVersionUID = -8329240908114062719L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;

    /**
     * 用户 ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 金额
     */
    @TableField("amount")
    private Long amount;

    /**
     * 状态 @see
     * {@link com.aliyun.order.client.constants.OrderStatus}
     */
    @TableField("status")
    private Integer status;

    /**
     * 关闭时间
     */
    @TableField("close_time")
    private Date closeTime;

    /**
     * 消息键
     */
    @TableField("unique_key")
    private String uniqueKey;
}